{extend name="admin/layout" /}
{block name="main"}
<div class="row">
    <div class="col-md-12">
        <div class="widget">
            <header class="widget-header">
                <h4 class="widget-title">开通分站
                </h4>
            </header><!-- .widget-header -->
            <hr class="widget-separator">
            <div class="widget-body">
                <div class="alert alert-info text-center">
                    <i class="fa fa-volume-up"></i>
                    提示：二级主站可以免费无限搭建分站，普通分站不能。
                </div>
                <form method="post" class="form-horizontal">
					{if condition="ZID eq 1 || config('web_super') eq 2"}
					<div class="form-group">
						<label class="col-sm-3 control-label">分站类型</label>
						<div class="col-sm-9">
						<select name="type" class="form-control">
							<option value="0">普通分站</option>
							<option value="1">二级主站</option>
							{if condition="ZID eq 1"}<option value="2">超级主站</option>{/if}
						</select>
						</div>
					</div>
					{/if}
                    <div class="form-group">
                        <label class="col-sm-3 control-label">用户UID</label>
                        <div class="col-sm-9">
                            <input type="number" name="uid" class="form-control" placeholder="输入用户UID" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">域名前缀</label>
                        <div class="col-sm-9">
                            <div class="input-group">
                                <input type="text" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" name="qz"
                                       class="form-control" required data-parsley-length="[2,8]"
                                       placeholder="输入你想要的二级前缀">
                                <div class="input-group-addon"><select name="domain">
                                    {volist name="domains" id="domain"}
                                    <option value="{:trim($domain)}">{:trim($domain)}</option>
                                    {/volist}
                                </select></div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">站点名称</label>
                        <div class="col-sm-9">
                            <input type="text" name="name" class="form-control" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">站长QQ</label>
                        <div class="col-sm-9">
                            <input type="number" name="qq" class="form-control" required>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-9">
                            <button class="btn btn-success" type="submit">&lt;&lt;&lt;快速开通&gt;&gt;&gt;</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
